//
//  MusicCDWidget.swift
//  TimMusic
//
//  Created by nkl on 2024/10/17.
//

import Foundation
import SwiftUI

struct MusicCDWidget: View {
    var hasArrow: Bool
    var bgColor : Color = .black

    var body: some View {
        ZStack {
            bgColor.ignoresSafeArea()
            Image("ic_cd")
            Image("ic_placeholder")
                .resizable()
                .foregroundColor(Color.red)
                .cornerRadius(40)
                .frame(width: 80, height: 80)
            if hasArrow {
                HStack {
                    Spacer()
                    Image("ic_cd_arrow").padding(.trailing, 20)
                }.offset(y: -20)
            }
        }
    }
}
